package org.csu.mypetstore.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Data
@TableName("cart")
public class Cart {
    @TableId(value = "userid",type = IdType.INPUT)
    private String userid;
    private int linenum;
    private String itemid;
    private String productid;
    private int quantity;
    private BigDecimal unitprice;
    private  int supplier;
    private String status;
    private String attr1;
    private BigDecimal itemtotal;
    //private BigDecimal totalprice;
    private Date createdDate; // 创建时间（用于排序）
}
